package com.xiangban.xiangbanmall.dao;

import com.xiangban.xiangbanmall.model.TUserMember;
import com.xiangban.xiangbanmall.model.TUserMemberGrade;
import com.xiangban.xiangbanmall.model.TUserRechargeRecord;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/11/1 16:40
 */
@Repository
public interface MemberMapper {

    TUserMember getUserMember(Integer userId);

    List<HashMap<String,Object>> getMemberGradeIdInfo(Integer userId);

    void minusUserIntegral(TUserMember tUserMember);

    void minusUserMoney(TUserMember tUserMember);

    void addUserIntegral(TUserMember tUserMember);

    void addUserMoney(TUserMember tUserMember);

    void insertTUserMember(TUserMember tUserMember);

    TUserMemberGrade selectUserMemberInfoByUserId(HashMap<String,Integer> map);
}
